<div class="event_container">
<div id="event" class="left">
<?=(isset($xalt)) ? "<a href=\"" . site_url() . "calendar/editEvent/" . $event->id . "\" style=\"text-decoration:none;\"><img src=\"" . base_url() . "img/icons/page_edit.png\" alt=\"Edit event\"/></a>" : "" ?><?=(isset($xalt)) ? "<a href=\"" . site_url() . "calendar/deleteEvent/" . $event->id . "\"	 id=\"conf" . $event->id . "\" onclick=\"$.prompt('Delete Event?',{callback: vhconfirm, buttons: { Yes : 'conf$event->id', No : false}}); return false;\"><img src=\"" .base_url() . "img/icons/delete.png\" alt=\"Delete Event\" title=\"Delete Event\" /></a>" : "" ?><?=(isset($xalt) || isset($admin)) ? "<a href=\"" . site_url() . "calendar/createItem/" . $event->id . "\" style=\"text-decoration:none;\"><img src=\"" . base_url() . "img/icons/page_edit.png\" alt=\"Edit event\"/></a>" : "" ?>
<br />
<?= $event->name?> @ <?=date("g:i a",mktime((int)substr($event->start,11,2),(int)substr($event->start,14,2),0,0,0,0))?> until <?=date("g:i a",mktime((int)substr($event->end,11,2),(int)substr($event->end,14,2),0,0,0,0))?>
<? if($event->location!='')?>
<?= ($event->location!='') ? "<p>Place: $event->location</p>" : ""?>
<p><?= $event->description?></p>
</div>
<div class="item">
<?=($items->num_rows()!=0 ? "<u>Items</u>" : "")?>
<? foreach($items->result() as $row2): ?>
<? if($row2->assign=="") : ?>
<li><a href="<?=site_url()?>calendar/assignItem/<?=$row2->id?>/<?=$con_user->userid?>" id="conf<?=$row2->id?>" onclick="$.prompt('Would you like to bring this item?',{callback: vhconfirm, buttons: { Yes : 'conf<?=$row2->id?>', No : false}}); return false;" style="text-decoration:none;"><?=$row2->name?></a></li>
<? else : ?>
<li><?=$row2->name?></li>
<? endif ?>
<?php endforeach?>
</div>
</div>